package com.jk.dao.account;

import com.jk.entity.account.AccDepartment;
import com.jk.util.mybatis.MyBatisRepository;
import org.apache.ibatis.annotations.Param;

import org.springframework.dao.DataAccessException;
import java.util.List;

/**
 * ACC_DEPARTMENT dao
 * Tue Sep 22 11:02:19 CST 2015 yanghuan
 */
@MyBatisRepository
public interface AccDepartmentDao {
    int deleteByPrimaryKey(@Param(value = "accDepartmentId") String key) throws DataAccessException;

    int insert(AccDepartment accDepartment) throws DataAccessException;

    AccDepartment selectByPrimaryKey(@Param(value = "accDepartmentId") String key) throws DataAccessException;

    int updateByPrimaryKeySelective(AccDepartment accDepartment) throws DataAccessException;

    int updateByPrimaryKey(AccDepartment accDepartment) throws DataAccessException;

    List<AccDepartment> selectAll() throws DataAccessException;
}

